package com.gexiaobao.pigeon.app.model.bean

import android.os.Parcelable
import kotlinx.parcelize.Parcelize

/**
 * @Author      : hxw
 * @Date        : 2024/2/25 19:04
 * @Describe    :
 */
@Parcelize
class RecentContactsResponse(

    var channel_id: String = "",
    var channel_type: Int = 0,
    var unread: Int = 0,
    var timestamp: Long = 0,
    var last_msg_seq: Int = 0,
    var last_client_msg_no: String = "",
    var offset_msg_seq: Int = 0,
    var version: Long = 0,
    var recents: List<RecentsList> = arrayListOf(),
    var userName: String = "",
    var shopAvatar:String = "",
    var userAvatar:String = "",

) : Parcelable {

    @Parcelize
    class RecentsList(

        var header: HeaderBean? = null,
        var setting: Int = 0,
        var message_id: Long = 0,
        var message_idstr: String = "",
        var client_msg_no: String = "",
        var stream_no: String = "",
        var message_seq: Int = 187,
        var from_uid: String = "",
        var channel_id: String = "",
        var channel_type: Int = 0,
        var expire: Int = 0,
        var timestamp: Long = 0,
        var payload: String = "",
        var streams: List<StreamsList> = arrayListOf(),

        ) : Parcelable {

        @Parcelize
        class StreamsList(

            var stream_seq: Int = 0,
            var client_msg_no: String = "",
            var blob: String = ""

        ) : Parcelable

        @Parcelize
        class HeaderBean(

            var no_persist: Int = 0,
            var red_dot: Int = 0,
            var sync_once: Int = 0

        ) : Parcelable
    }
}